<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<script src="../js/vue.min.js"></script>
		<script src="../js/vant.min.js"></script>
		<link rel="stylesheet" href="../css/index.css" />
		<script src="https://unpkg.com/vue-lazyload/vue-lazyload.js"></script>
		<script src="html5plus://ready"></script>
		<script src="../js/listener_other.js"></script>
		<title>个人资料</title>
	</head>
	<body >
		<div id="app">
			<van-row style="background-color:orangered; height:100px;line-height:46px;padding-top: 4%;">
			  <van-col span="4" offset="1" ><van-icon name="arrow-left" size="20px" style="margin-top: 29px;" @click="onClickLeft" /></van-col>
			  <van-col span="8" offset="4"><h2>设置</h2></van-col>
			  
			</van-row>
			<van-row style="margin-top: 5%;">
			  <van-col span="8" offset="1" >
			  	<a @click="URL('../personcenter/wangji.html')" style="color: #323233;">
						<span>修改登录密码</span> 
					</a>
			  
			  </van-col>
			  <van-col span="3" offset="12">
			  	<van-icon name="arrow" />
			  </van-col>
			  
			</van-row>
			<van-cell-group>
			  
			  
			</van-cell-group><br />
			<van-row style="margin-top: 3%;">
			  <van-col span="6" offset="1" >清空缓存</van-col>
			 
			  <van-col span="3" offset="14" ><van-icon name="arrow" /></van-col>
			  
			</van-row>
			<van-row style="margin-top: 10%;">
			 
			  <van-col span="16" offset="3">
			  		
					<van-button type="danger" @click="outdenglu" size="large">退出登录</van-button>
					
			  	
			 
			  
			</van-row>

		</div>
		<script type="text/javascript">
			var vm = new Vue({

				el: "#app",

				data: {

				},
				mounted(){
					
					if(localStorage.getItem("key")=="null"){
							

								alert('您还未登录');
					       
					       	plus.webview.open("../personcenter/denglu.html");
					       	plus.webview.close(plus.webview.currentWebview().id);
					     
							
							
							
												
					}
					
					
						
				},
				methods: {
					URL:function(url){
						plus.webview.open(url);
						
					},
					onClickLeft: function() {
						plus.webview.close(plus.webview.currentWebview().id);
					},
					outdenglu:function(){
						
						
							localStorage.setItem("Error","true");
							localStorage.setItem("key","null");
							localStorage.setItem("Name","未登录");
							localStorage.setItem("imgurl","null");
							var myself=plus.webview.getWebviewById("myself")
							myself.reload(true);
							plus.webview.close(plus.webview.currentWebview().id);
							
						
						
					}
				}

			});
		</script>
	</body>
</html>